package com.yanqu.road.entity.log.cross.suitang;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_suitang_barracks", desc = "逐鹿隋唐-兵营日志", autoSave = true, uploadCk = true, dataUpload = true, eventName = "chasedeer_camp", isCross = true)
public class LogCrossSuiTangBarracks extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityId", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "分组ID", dataAttribute = "chasedeer_groid", isIndex = true)
    private int groupId;
    @FieldTypeAnnotation(desc = "战场id", dataAttribute = "chasedeer_battle")
    private long warTypeId;
    @FieldTypeAnnotation(desc = "小组id", dataAttribute = "chasedeer_teamid")
    private long actGroupId;
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "征兵速率", dataAttribute = "chasedeer_campspeed")
    private int speed;
    @FieldTypeAnnotation(desc = "兵营类型：1为道具增加，2为消耗", dataAttribute = "chasedeer_camptype")
    private int type;
    @FieldTypeAnnotation(desc = "增加预备兵", dataAttribute = "chasedeer_campadd")
    private long soldierAdd;
    @FieldTypeAnnotation(desc = "当前预备兵", dataAttribute = "chasedeer_campnow")
    private long soldierCur;

    public LogCrossSuiTangBarracks(int activityId, int groupId, long warTypeId, long actGroupId, long userId, int speed, int type, long soldierAdd, long soldierCur) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.warTypeId = warTypeId;
        this.actGroupId = actGroupId;
        this.userId = userId;
        this.speed = speed;
        this.type = type;
        this.soldierAdd = soldierAdd;
        this.soldierCur = soldierCur;
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
